﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DotNet4.Utilities;

namespace WebServerConnectorDll
{
    public class EasyHelper
    {
        public static String C5HttpHelperPostResult(String pUrl, String pPostData)
        {
            HttpHelper httpHelper = new HttpHelper();
            HttpItem httpItem = new HttpItem();

            httpItem.Method = "POST";
            httpItem.Timeout = 4000;
            httpItem.ContentType = "text/html;charset=utf-8";

            httpItem.URL = pUrl;
            httpItem.Postdata = pPostData;

            HttpResult httpResult = httpHelper.GetHtml(httpItem);

            return httpResult.Html;
        }
    }
}
